/* 
 * RoomRecord.java 12.05.2011
 *  
 *  
 * Candidate: Alessandra Otterbach
 * Prometric ID: Algisina1
 * Username: Algisina
 *  
 * Sun Certified Developer for Java 2 Platform, Standard Edition Programming 
 * Assignment (CX-310-252A)
 *  
 * This class is part of the Programming Assignment of the Sun Certified 
 * Developer for Java 2 Platform, Standard Edition certification program, must 
 * not be used out of this context and must be used exclusively by Sun 
 * Microsystems, Inc. 
 */
package suncertify.dao;

import java.io.Serializable;

/**
 * Data container for all the hotel specific data. Serializable for network conversation.
 * 
 * @author Alessandra Otterbach
 * 
 */
public class RoomRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final int HEADER_LENGTH = 74;
    
    public static final int DELETED_FIELD_LENGTH = 1;
    
    public static final int NAME_FIELD_LENGTH = 64;

    public static final int LOCATION_FIELD_LENGTH = 64;

    public static final int SIZE_FIELD_LENGTH = 4;

    public static final int SMOKING_FIELD_LENGTH = 1;

    public static final int RATE_FIELD_LENGTH = 8;

    public static final int DATE_FIELD_LENGTH = 10;

    public static final int OWNER_FIELD_LENGTH = 8;

    public static final int ROOM_RECORD_LENGTH = DELETED_FIELD_LENGTH 
    	    + NAME_FIELD_LENGTH
	    + LOCATION_FIELD_LENGTH 
	    + SIZE_FIELD_LENGTH 
	    + SMOKING_FIELD_LENGTH
	    + RATE_FIELD_LENGTH 
	    + DATE_FIELD_LENGTH 
	    + OWNER_FIELD_LENGTH;
    
    private int id;
    private String name;
    private String location;
    private int size;
    private String smoking;
    private String rate;
    private String date;
    private String owner;

    public int getId() {
	return id;
    }

    public void setId(int id) {
	this.id = id;
    }

    public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

    public String getLocation() {
	return location;
    }

    public void setLocation(String location) {
	this.location = location;
    }

    public int getSize() {
	return size;
    }

    public void setSize(int size) {
	this.size = size;
    }

    public String getSmoking() {
	return smoking;
    }

    public void setSmoking(String smoking) {
	this.smoking = smoking;
    }

    public String getRate() {
	return rate;
    }

    public void setRate(String rate) {
	this.rate = rate;
    }

    public String getDate() {
	return date;
    }

    public void setDate(String date) {
	this.date = date;
    }

    public String getOwner() {
	return owner;
    }

    public void setOwner(String owner) {
	this.owner = owner;
    }
}
